<template>
  <div class="home">
    <img alt="Vue logo" src="../assets/logo.png">
    <HelloWorld msg="Welcome to Your Vue.js App"/>
  </div>
</template>

<script>
// @ is an alias to /src
import HelloWorld from '@/components/HelloWorld.vue'
import axios from 'axios'
export default {
  name: 'Home',
  components: {
    HelloWorld
  },
  mounted () {
    axios.post('http://localhost:3000/users/login', {
      username: 'lisi',
      password: '123'
    }).then(res => {
      console.log(res, '登陆信息')
    })

    // axios.get('http://localhost:3000/users/get-test').then(res => {
    //   console.log(res, 'res')
    // })
  }
}
</script>
